package com.service;

import com.service.impl.TestProviderServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * provider数据接口
 */
@FeignClient(value = "provider-test", fallback = TestProviderServiceImpl.class)
public interface TestProviderService {
    @GetMapping("hello")
    public String hello();

    @GetMapping("ribbon")
    public String ribbon(@RequestParam(value = "code", required = false) Integer code);
}
